﻿@model Tesis.Areas.Distribuciones.Models.Distribucion
@using Telerik.Web.Mvc.UI
@{
    ViewBag.Title = "DistribucionTemplate";
}

<h2>Actualización de Campos</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Distribución</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Tipo)
        </div>
        <div class="editor-field">
            @Html.Telerik().AutoCompleteFor(model => model.Tipo).HtmlAttributes(new { Style = "width: 515px;" })
            @Html.ValidationMessageFor(model => model.Tipo)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NombreCorto)
        </div>
        <div class="editor-field">
            @Html.Telerik().AutoCompleteFor(model => model.NombreCorto).HtmlAttributes(new { Style = "width: 515px;" })
            @Html.ValidationMessageFor(model => model.NombreCorto)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Descripcion, 10, 65, new { style = "resize:both; min-height:100px; max-height: 500px;" }) 
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Imagen)
        </div>
        <div class="editor-field">
            @Html.Telerik().AutoCompleteFor(model => model.Imagen).HtmlAttributes(new { Style = "width: 515px;" })
            @Html.ValidationMessageFor(model => model.Imagen)
        </div>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Estado)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.Estado)
            @Html.ValidationMessageFor(model => model.Estado)
        </div>
    </fieldset>
}
